import request from '@/utils/request'

// 查询智能体平台列表
export function listAiAgentPlat(query) {
  return request({
    url: '/biz/aiAgentPlat/list',
    method: 'get',
    params: query
  })
}

// 查询智能体平台详细
export function getAiAgentPlat(aiAgentPlatId) {
  return request({
    url: '/biz/aiAgentPlat/' + aiAgentPlatId,
    method: 'get'
  })
}

// 新增智能体平台
export function addAiAgentPlat(data) {
  return request({
    url: '/biz/aiAgentPlat',
    method: 'post',
    data: data
  })
}

// 修改智能体平台
export function updateAiAgentPlat(data) {
  return request({
    url: '/biz/aiAgentPlat',
    method: 'put',
    data: data
  })
}

// 删除智能体平台
export function delAiAgentPlat(aiAgentPlatId) {
  return request({
    url: '/biz/aiAgentPlat/' + aiAgentPlatId,
    method: 'delete'
  })
}

// 查询智能体平台详细
export function checkAiAgentPlatAccessTokenSta(aiAgentPlatId) {
  return request({
    url: '/biz/aiAgentPlat/checkAiAgentPlatAccessTokenSta/' + aiAgentPlatId,
    method: 'get'
  })
}

// 查询智能体平台详细
export function getAiAgentPlatWorkspaceIdList(aiAgentPlatAccessToken) {
  return request({
    url: '/biz/aiAgentPlat/getAiAgentPlatWorkspaceIdList/' + aiAgentPlatAccessToken,
    method: 'get'
  })
}